package com.qinggeng.project.system.service.impl;

import com.qinggeng.project.system.domain.GoodsMark;
import com.qinggeng.project.system.mapper.GoodsMarkMapper;
import com.qinggeng.project.system.service.IGoodsMarkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsMarkServiceImpl implements IGoodsMarkService {

    @Resource
    private GoodsMarkMapper goodsMarkMapper;

    @Override
    public int insertGoodsMark(GoodsMark goodsMark) {
        return goodsMarkMapper.insertGoodsMark(goodsMark);
    }

    @Override
    public int deleteGoodsMarkById(String id) {
        return goodsMarkMapper.deleteGoodsMarkById(id);
    }

    @Override
    public int updateGoodsMark(GoodsMark goodsMark) {
        return goodsMarkMapper.updateGoodsMark(goodsMark);
    }

    @Override
    public GoodsMark selectGoodsMarkById(String id) {
        return goodsMarkMapper.selectGoodsMarkById(id);
    }

    @Override
    public List<GoodsMark> selectGoodsMarkList() {
        return goodsMarkMapper.selectGoodsMarkList();
    }
}
